package com.biannuo.szk.shop.feign;

import com.biannuo.szk.shop.fallback.ShopClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 表示调用服务名为 openfeign-provider-sample fallback 异常、限流等的自定义处理逻辑在OpenFeignTestServiceFallback类中
 *
 * @author szk
 */
@FeignClient(value = "shop", fallback = ShopClientFallback.class)
public interface ShopClient {
    @RequestMapping(value = "/openFeignProviderTest", method = RequestMethod.GET)
    /**
     * openFeignProviderTest接口
     * @return 字符
     */
    String openFeignProviderTest();
}
